﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using _180FrameWork.CustControls.Properties;

namespace _180FrameWork.CustControls
{
    public enum CustIcon
    {
        add,
        bar, book, back,
        computer, cancel,
        del,down,
        edit, exit, excel,
        find, folder,
        item,
        key,
        link, left,
        ok,
        plugin, print,
        right, root,reload,
        save, setting, star, stop,
        tool,
        user,up,
        word
    }

    public class CustIconHelper
    {
        public static Image GetIcon(CustIcon icon)
        {
            Image img = null;
            switch (icon)
            {
                case CustIcon.add:
                    img = Resources.add;
                    break;
                case CustIcon.bar:
                    img = Resources.chart_bar;
                    break;
                case CustIcon.book:
                    img = Resources.book_open;
                    break;
                case CustIcon.back:
                    img = Resources.arrow_undo;
                    break;
                case CustIcon.cancel:
                    img = Resources.cancel;
                    break;
                case CustIcon.computer:
                    img = Resources.calculator;
                    break;
                case CustIcon.del:
                    img = Resources.delete;
                    break;
                case CustIcon.down:
                     img = Resources.arrow_down;
                    break;
                case CustIcon.edit:
                    img = Resources.pencil;
                    break;
                case CustIcon.exit:
                    img = Resources.door_out;
                    break;
                case CustIcon.excel:
                    img = Resources.page_excel;
                    break;
                case CustIcon.find:
                    img = Resources.zoom;
                    break;
                case CustIcon.folder:
                    img = Resources.folder;
                    break;
                case CustIcon.item:
                    img = Resources.attach;
                    break;
                case CustIcon.key:
                    img = Resources.key;
                    break;
                case CustIcon.link:
                    img = Resources.building_link;
                    break;
                case CustIcon.left:
                    img = Resources.arrow_left;
                    break;
                case CustIcon.ok:
                    img = Resources.accept;
                    break;
                case CustIcon.right:
                    img = Resources.arrow_right;
                    break;
                case CustIcon.root:
                    img = Resources.chart_organisation;
                    break;
                case CustIcon.reload:
                    img = Resources.arrow_rotate_clockwise;
                    break;
                case CustIcon.plugin:
                    img = Resources.plugin;
                    break;
                case CustIcon.print:
                    img = Resources.printer;
                    break;
                case CustIcon.save:
                    img = Resources.disk;
                    break;
                case CustIcon.setting:
                    img = Resources.cog;
                    break;
                case CustIcon.star:
                    img = Resources.award_star_gold_1;
                    break;
                case CustIcon.stop:
                    img = Resources.stop;
                    break;
                case CustIcon.tool:
                    img = Resources.wrench;
                    break;
                case CustIcon.user:
                    img = Resources.user;
                    break;
                case CustIcon.up:
                    img = Resources.arrow_up;
                    break;
                case CustIcon.word:
                    img = Resources.page_word;
                    break;
                default:
                    break;
            }
            return img;
        }
    }
}
